#!/usr/bin/env bash

file="$1"
delete_a_file_if_exists_sudo()
{
    local local_file="$1"
    if [ -f "$local_file" ] ; then
        sudo rm "$local_file"
        echo "File $local_file is deleted."
    fi
}
delete_a_file_if_exists()
{
    local local_file="$1"
    if [ -f "$local_file" ] ; then
        rm "$local_file"
        echo "File $local_file is deleted."
    fi
}

file_01="/usr/share/package-data-downloads/ttf-mscorefonts-installer"
file_02="/var/lib/update-notifier/package-data-downloads/ttf-mscorefonts-installer.failed"
file_03="/var/lib/update-notifier/user.d/data-downloads-failed"
delete_a_file_if_exists "$file_01"
delete_a_file_if_exists "$file_02"
delete_a_file_if_exists "$file_03"
